﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ServerControl.Model.Enum
{
    public enum Command
    {
        /// <summary>
        /// 验证未通过，终止
        /// </summary>
        NotAllowed = 0,
        /// <summary>
        /// 心跳
        /// </summary>
        HeartBeat = 1,
        /// <summary>
        /// 设备连接
        /// </summary>
        DeviceConnected = 2,
        /// <summary>
        /// 设备断线
        /// </summary>
        DeviceDisConnected = 3,
        /// <summary>
        /// 设备列表（web端请求重新获取列表、web端连接上server发送 两种情况用）
        /// </summary>
        DeviceList = 4,
        /// <summary>
        /// 开始执行脚本
        /// </summary>
        StartScript = 5,
        /// <summary>
        /// 停止执行脚本
        /// </summary>
        StopScript = 6,
        /// <summary>
        /// 脚本异常（上报）
        /// </summary>
        ScriptException = 7,
        /// <summary>
        /// 脚本更新
        /// </summary>
        UpdateScript = 8,
        /// <summary>
        /// 设备上报任务执行情况
        /// </summary>
        UpdateJob = 9,
        /// <summary>
        /// 更改分组
        /// </summary>
        UpdateGroup = 10,
        /// <summary>
        /// 设备重命名
        /// </summary>
        DeviceRename = 11,
        /// <summary>
        /// 获取当前任务日志
        /// </summary>
        JobLogs = 12,
        /// <summary>
        /// 更新日志内容
        /// </summary>
        UpdateJobLogs = 13,
        /// <summary>
        /// 移除日志
        /// </summary>
        RemoveLogs = 14,
        /// <summary>
        /// 命令原样发送测试
        /// </summary>
        CmdOriginTest = 6666,
        /// <summary>
        /// 即时通知
        /// </summary>
        InstantNotice = 9998,
        /// <summary>
        /// 获取连接数
        /// </summary>
        ConnectCount = 9999
    }
}